package com.jiot.controller.device;

import com.zg.cloud.BaseResponse;
import com.zg.cloud.annotation.TokenCheck;
import com.zg.cloud.service.IndustryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author liling
 * @date 2020/10/15 15:33
 * @description
 **/
@RestController
@RequestMapping("/device/industry")
@Api(value = "行业模块")
public class IndustryController {

    @Resource
    private IndustryService industryService;

    @PostMapping("/list")
    @TokenCheck
    @ApiOperation(value = "行业列表", notes = "industry")
    public BaseResponse list() {
        return new BaseResponse(industryService.list());
    }
}
